#!/bin/bash

# Starting date in "YYYY-MM-DD" format
start_date="2025-07-20"

# Number of days to run the loop (e.g., 10 for 10 days)
num_days=2

# Convert start_date to seconds since the epoch for easier date arithmetic
current_date=$(date -d "$start_date" +%s)

for (( i=0; i<num_days; i++ )); do
    # Convert current_date back to YYYY-MM-DD format
    date_str=$(date -d "@$current_date" +%Y-%m-%d)
    
    # Run each executable with the current date
    #python read_sync.py "$date_str"
    #python read_sync_iso.py "$date_str"
    python ghg_sdt2.py "$date_str"
    
    # Increment current_date by one day (86400 seconds)
    current_date=$((current_date + 86400))
done

